package com.example.viewmodel_lifecycle_livedata.livedata

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel

class MyViewModel:ViewModel() {

    val  mData: MutableLiveData<String> = MutableLiveData()
    fun getNetData(){
        for (i in 1..100){
            mData.postValue( "我是网络请求的数据"+i)
        }


    }

}